﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 用户云仓
    /// </summary>
    [Table("usr_warehouse"), Comment("用户云仓"), Index(nameof(UserId))]
    public class Warehouse : EfEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Comment("商品ID")]
        public long GoodsId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Comment("商品类型")]
        public int GoodsType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Comment("规格ID")]
        public long SizeId { get; set; }  

        /// <summary>
        /// 
        /// </summary>
        [Comment("数量")]
        public int Quantity { get; set; }

        /// <summary>
        /// 仓储类型 0;常规库存 1:特色库存
        /// </summary>
        [Comment("仓储类型 0;常规库存 1:特色库存")]
        public int Type { get; set; }
    }
}
